package net.aiion.weave.impl.bytecode.events;

import net.aiion.weave.spi.bytecode.BytecodeVisitor;
import net.aiion.weave.spi.bytecode.events.AnnotationEndBytecodeEvent;

public class AnnotationEndBytecodeEventImpl extends BytecodeEventImpl implements AnnotationEndBytecodeEvent
{
    private static final AnnotationEndBytecodeEventImpl INSTANCE = new AnnotationEndBytecodeEventImpl();

    public AnnotationEndBytecodeEventImpl() {
    }

    @Override
    public int getType() {
        return ANNOTATION_END;
    }

    public static AnnotationEndBytecodeEventImpl getInstance() {
        return INSTANCE;
    }

    @Override
    public BytecodeVisitor acceptBytecodeVisitor(final BytecodeVisitor aBytecodeVisitor) {
        aBytecodeVisitor.asBytecodeAnnotationVisitor().visitAnnotationEnd(this);
        return null;
    }
}
